/*
 * @Author       : xh
 * @Date         : 2022-10-12 17:35:13
 * @LastEditors: loserjohn
 * @FileName     :   
 */
module.exports = {
  transform: {
    '^.+\\.(ts|tsx|js|jsx)$': [
      'babel-jest', {
        presets: [
          '@babel/preset-env',
          '@babel/preset-typescript' // 新增
        ],

        plugins: ['@vue/babel-plugin-jsx'] // 新增
      }
    ]

  },
  testEnvironment: 'jest-environment-jsdom',
  moduleNameMapper: {
    "\\.(css|less|scss|sss|styl)$": "jest-css-modules"
  }
};